package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.CustomerInvoiceEntity;

import java.util.List;
import java.util.Map;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/1/22 16:44
 * @since v1.0
 */
public interface CustomerInvoiceModel extends IModel<CustomerInvoiceEntity> {

    /**
     * 根据查询条件查出实体集合
     *
     * @param param 参数
     * @return java.util.List<com.xbongbong.saas.domain.entity.ext.CustomerInvoiceEntity>
     * @author feng.zheng
     * @date 2019/2/25 10:40
     */
    @Override
    List<CustomerInvoiceEntity> findEntitys(Map<String, Object> param);

    /**
     * 数据单条查询
     *
     * @param key    主键ID
     * @param corpid 公司ID
     * @return Integer
     * @author feng.zheng
     * @date 2019/1/23 20:27
     * @since v1.0
     */
    CustomerInvoiceEntity getByKey(Long key, String corpid);


    /**
     * 根据id删除
     *
     * @param key    主键
     * @param corpid 公司id
     * @return java.lang.Integer
     * @author feng.zheng
     * @date 2019/2/22 20:23
     */
    Integer deleteByKey(Long key, String corpid) throws XbbException;

}
